package com.ktjiaoyu.yuanzihuan.service;


import com.ktjiaoyu.yuanzihuan.bean.Article;
import com.ktjiaoyu.yuanzihuan.repository.ArticleRepository;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service("articleService")
public class ArticleServiceImp implements  ArticleService{

    @Resource
    ArticleRepository articleRepository;

    @Override
    public List<Article> findByEnabledAndOrderByOrderNoAscBiz() {
        return articleRepository.findByEnabledOrderByOrderNoAsc(1);
    }
}
